import statistics as stt
data = [1, 2, 2, 3, 3, 3, 4, 4]
print("次数最多的数是：",stt.mode(data))
'次数最多的数是： 3'

colors = stt.mode(["red", "blue", "blue", "red", "green", "red", "red"])
print("次数最多的颜色是：",colors)